package com.example.dbdesign.service;

import com.example.dbdesign.pojo.entity.User;
import com.example.dbdesign.pojo.vo.voUser;

import java.util.List;
import java.util.Map;

/**
 * (Role)表服务接口
 *
 * @author makejava
 * @since 2025-06-19 10:35:37
 */
public interface UserService {

    /**
     * 根据id查询
     */
    User selectById(int id);
//    voUser selectByUnoAndRole(String uno, int role);
    Map<String, String> login(String uno, String password);
    Boolean logout();
    voUser register(User user);
    voUser update(User user);
    Boolean delete(int id);
    voUser updateById(User user);
    List<User> selectByPage(Map<String, Object> map);
    int calSum();
    List<User> selectByTypeAndDate(int type, int date);
    List<User> selectByDate(int date);
    List<User> selectByType(int type);
    List<User> selectForTeacher();
}
